package com.wk.oms.feign;

import com.wk.common.bean.Resp;
import com.wk.oms.entity.Order;
import com.wk.oms.vo.OrderSubmitVO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

@FeignClient("oms-service")
@RequestMapping("order")
public interface OrderFeign {

    /**
     * 保存订单
     */
    @PostMapping
    Resp<Order> saveOrder(@RequestBody OrderSubmitVO orderSubmitVo);

}
